﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;

namespace TestLinq.Entities
{
    [Table(Name = "DangNhap")]
    public class DangNhapInfo
    {
        [Column(IsPrimaryKey = true)]//or [Column(Name="UserName")]// la khoa chinh
        public string UserName { get; set; }
        [Column]
        public string Password { get; set; }
        [Column(Name = "TenUser", CanBeNull = false)]//bat buoc nhap
        public string FullName { get; set; }
        [Column]
        public int PhanQuyen { get; set; }
    }
}
